package com.ruoyi.quartz.task;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author ：LiuShihao
 * @date ：Created in 2021/5/19 4:37 下午
 * @desc ：testTask.testTask()
 */
@Component("testTask")
public class TestTask {
    public void testTask(){
        System.out.println(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
    }
}
